//
//  NoticeListCell.m
//  ForYourBeauty
//
//  Created by Kelly xu on 2019/6/2.
//  Copyright © 2019 changrenTech. All rights reserved.
//

#import "NoticeListCell.h"

@implementation NoticeListCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
- (void)setModel:(ClockModel *)model {
    _model = model;
    self.timeLabel.text = model.timeClock;
    self.timeTextLabel.text = model.timeText;
    self.timeSwitch.on = model.isOn;
    self.timeTagLabel.text = model.tagStr;
    self.weeksLabel.text = model.repeatStr;
}

- (IBAction)action_switch:(UISwitch *)sender {
    
    if (self.delegate && [self.delegate respondsToSelector:@selector(alarmCell:switch:didSelectedAtIndexpath:)]) {
        [self.delegate alarmCell:self switch:self.timeSwitch didSelectedAtIndexpath:self.indexPath];
    }
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
